/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package stanford.tagger;

import java.util.HashMap;
import java.util.HashSet;

/**
 *
 * @author hadoop
 */
public class TagToken {

    private HashMap<String, HashSet<String>> tagTokens;

    public TagToken() {
        tagTokens = new HashMap<String, HashSet<String>>();
    }

    public void add(String tag, String[] words){

        if(!tagTokens.containsKey(tag)) {
          tagTokens.put(tag, new HashSet<String>());
        }

        for(String word : words){
            tagTokens.get(tag).add(word);
        }
        
    }

    public HashMap<String, HashSet<String>> get(){
        return tagTokens;
    }

}
